<script setup lang="ts">
import MyDialog from './components/MyDialog.vue'
</script>

<template>
  <!-- 默认插槽传递 -->
  <!-- <MyDialog> 你好</MyDialog> -->

  <!-- 具名插槽传递 -->
  <MyDialog>
    <template v-slot:title>修改标题</template>
    <!-- #是v-slot的简写 -->
    <template #footer>
      <button>不取消</button>
      <button>不确认</button>
    </template>
  </MyDialog>
</template>

<style scoped></style>
